package com.acmetelecom.fakes;

import java.util.HashMap;

import com.acmetelecom.Printer;

public class FakePrinter implements Printer {

	public static HashMap<String,Double> bills = new HashMap<String,Double>();
	public String phoneNumber;

	@Override
	public void printHeading(String name, String phoneNumber, String pricePlan) {
		this.phoneNumber = phoneNumber;
	}

	@Override
	public void printItem(String time, String callee, String duration,
			String cost) {
		return;
	}

	@Override
	public void printTotal(String total) {
		bills.put(phoneNumber,Double.parseDouble(total));
	}

}
